home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_01_07
/
1n07034c
< prev
next >
Wrap
Text File
|
1990-10-28
|
279b
|
18 lines
LISTING 3
/* routine to transmit len bytes
of data in a bufffer over a
network descriptor nd.
*/
void write_data(int nd, char *buf,
unsigned int len)
{
if (net_write(nd, buf, len, 0) < 0) {
pneterror("net_write");
return (0);
}
}